function addOrdersApi(data){
    return axios.post("/orders", data)
}


function ordersPageApi(page, pageSize, orderId, userId) {
    return axios.get('/orders/page', {
        params: {
            page: page,
            pageSize: pageSize,
            orderId: orderId,
            userId: userId,
        }
    })
}

function setStatusApi(id, status){
    return axios.put(`/orders/setStatus?id=${id}&status=${status}`)
}

function delOrdersApi(id) {
    return axios.delete(`/orders/${id}`)
}